package com.aizhixin.lab.project.template.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Temporal;
import java.util.Date;

@Data
public class WorkOrderFileDomain {
    @ApiModelProperty(value = "工单文件ID", required = false)
    private String id;
    @ApiModelProperty(value = "工单Id", required = false)
    private String workOrderId;
    @ApiModelProperty(value = "文件名称", required = false)
    private String fileName;
    @ApiModelProperty(value = "文件类型", required = false)
    private Integer fileType;
    @ApiModelProperty(value = "文件路径", required = false)
    private String fileUrl;
    @ApiModelProperty(value = "是否隐藏文件")
    private Boolean isHide=false;
    private String fileSize;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    protected Date createdDate;
}
